//
//  YZMTradeSTDetailModel.m
//  YZMicroStock
//
//  Created by wangminhong on 16/4/14.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZMTradeSTDetailModel.h"
#import "Mantle+Utils.h"

@implementation YZMTradeSTDetailModel

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"buyPriceDeal":@"buyPriceDeal",
             @"sellPriceDeal":@"sellPriceDeal",
             @"closeTime":@"closeTime",
             @"dealTime":@"dealTime",
             @"deferCharge":@"deferCharge",
             @"holdDays":@"holdDays",
             @"tid":@"id",
             @"investorUserId":@"investorUserId",
             @"investorUsername":@"investorUsername",
             @"investorUserName":@"investorUserName",
             
             @"money":@"money",
             @"profitShare":@"profitShare",
             @"profitTotal":@"profitTotal",
             @"quitLoss":@"quitLoss",
             
             @"serviceCharge":@"serviceCharge",
             @"stockCode":@"stockCode",
             @"stockName":@"stockName",
             
             @"userId":@"userId",
             @"username":@"username",
             @"userName":@"userName",
             @"volumeDeal":@"volumeDeal",
             
             @"lossPrincipal":@"lossPrincipal",
             @"holdNum":@"holdNum",
             @"liquidateTime":@"liquidateTime",
             @"profitFreeEx":@"profit",
             @"realBuyPrice":@"realBuyPrice",
             @"realSellPrice":@"realSellPrice",
             @"realSellTime":@"realSellTime",
             @"strategyId":@"strategyId",
             @"userProfit":@"userProfit",
             @"holdvalue":@"holdvalue",
             @"realBuyTime":@"realBuyTime",
             
             };
}





- (void)setNilValueForKey:(NSString *)key
{
    
}

+ (NSValueTransformer *)realBuyTimeJSONTransformer{
    return [NSValueTransformer valueTransformerForName: MTLDoubleDateTransformerName];
}

+ (NSValueTransformer *)liquidateTimeJSONTransformer{
    return [NSValueTransformer valueTransformerForName: MTLDoubleDateTransformerName];
}

+ (NSValueTransformer *)realSellTimeJSONTransformer{
    return [NSValueTransformer valueTransformerForName: MTLDoubleDateTransformerName];
}

+ (NSValueTransformer *)buyPriceDealJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)sellPriceDealJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)closeTimeJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLDoubleDateTransformerName];
}

+ (NSValueTransformer *)dealTimeJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLDoubleDateTransformerName];
}

+ (NSValueTransformer *)deferChargeJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)tidJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLLongStringTransformerName];
}

+ (NSValueTransformer *)investorUserIdJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLLongStringTransformerName];
}

+ (NSValueTransformer *)moneyJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)profitShareJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)profitTotalJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)totalProfitJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)quitLossJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)serviceChargeJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)userIdJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLLongStringTransformerName];
}

+ (NSValueTransformer *)lossPrincipalJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

@end
